<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>操作成功</title>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
  <link rel="stylesheet" href="/static/index/css/font-awesome.min.css">
  <link rel="stylesheet" href="/static/index/lib/weui.min.css">
  <link rel="stylesheet" href="/static/index/css/jquery-weui.css">
  <link rel="stylesheet" href="/static/index/css/style.css">

  <style>
    /* 基础布局保持与系统页面一致 */
    body {
      background-color: #f5f5f5;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    /* 成功提示核心容器 */
    .success-container {
      background-color: #fff;
      border-radius: 12px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.05);
      width: 100%;
      max-width: 420px;
      padding: 40px 20px;
      text-align: center;
    }

    /* 成功图片样式 - 替换原有图标 */
    .success-image-container {
      width: 100px;
      height: 100px;
      margin: 0 auto 20px;
      background-color: rgba(26, 173, 25, 0.1);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 10px;
    }

    .success-image {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
    }

    /* 成功提示文本 */
    .success-title {
      font-size: 20px;
      color: #333;
      margin-bottom: 10px;
      font-weight: 500;
    }

    .success-desc {
      font-size: 14px;
      color: #888;
      line-height: 1.6;
      margin-bottom: 30px;
      padding: 0 10px;
    }

    /* 操作按钮区域 */
    .success-btns {
      display: flex;
      gap: 12px;
      justify-content: center;
      margin-bottom: 20px;
    }

    .success-btn {
      padding: 10px 24px;
      border-radius: 8px;
      font-size: 15px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      border: none;
      text-decoration: none;
      display: inline-block;
    }

    /* 主按钮（返回首页）- 主题色 */
    .success-btn.primary {
      background-color: #1AAD19;
      color: #fff;
    }

    .success-btn.primary:active {
      background-color: #148812; /* 点击深色反馈 */
    }

    /* 次要按钮（查看详情）- 边框样式 */
    .success-btn.secondary {
      background-color: transparent;
      color: #1AAD19;
      border: 1px solid #1AAD19;
    }

    .success-btn.secondary:active {
      background-color: #f0f9f0; /* 点击浅色反馈 */
    }

    /* 自动跳转提示 */
    .redirect-tip {
      font-size: 13px;
      color: #aaa;
    }

    /* 底部版权信息 */
    .copyright {
      color: #ccc;
      font-size: 12px;
      margin-top: 20px;
      text-align: center;
    }

    /* 响应式调整 */
    @media (max-width: 360px) {
      .success-image-container {
        width: 80px;
        height: 80px;
      }

      .success-title {
        font-size: 18px;
      }

      .success-btns {
        flex-direction: column; /* 小屏按钮垂直排列 */
        padding: 0 20px;
      }

      .success-btn {
        width: 100%;
        padding: 12px 0;
      }
    }
  </style>
</head>

<body>
<!-- 成功提示核心内容区 -->
<div class="success-container">
  <!-- 成功图片替换原有图标 -->
  <div class="success-image-container">
    <img src="https://picsum.photos/id/28/200/200" alt="操作成功图片" class="success-image">
  </div>

  <h2 class="success-title">操作成功</h2>
  <p class="success-desc">
    您的请求已成功提交并处理完成<br>
    即将为您跳转到相关页面
  </p>

  <!-- 操作按钮 -->
  <div class="success-btns">
    <a href="/index.html" class="success-btn primary">
      <i class="fa fa-home mr-2"></i>返回首页
    </a>
    <a href="javascript:history.back()" class="success-btn secondary">
      <i class="fa fa-arrow-left mr-2"></i>返回上一页
    </a>
  </div>

  <!-- 自动跳转提示 -->
  <div class="redirect-tip">
    <i class="fa fa-clock-o"></i> 自动跳转倒计时：<span id="countdown">3</span>秒
  </div>
</div>

<!-- 底部版权 -->
<div class="copyright">
  © 2025 数字货币交易平台 版权所有
</div>

<script src="/static/index/lib/jquery-2.1.4.js"></script>
<script src="/static/index/lib/fastclick.js"></script>
<script>
  FastClick.attach(document.body);

  // 自动跳转倒计时
  let countdown = 3;
  const countdownEl = document.getElementById('countdown');
  const targetUrl = '/index.html'; // 跳转目标页面

  const timer = setInterval(() => {
    countdown--;
    countdownEl.textContent = countdown;

    if (countdown <= 0) {
      clearInterval(timer);
      window.location.href = targetUrl; // 自动跳转
    }
  }, 1000);

  // 按钮点击时清除倒计时
  $('.success-btn').on('click', function() {
    clearInterval(timer);
  });
</script>
</body>
</html>
    